import request from '@/utils/request'

// 查询奖励类型列表
export function listAwardtype(query) {
  return request({
    url: '/gxs/awardtype/list',
    method: 'get',
    params: query
  })
}

// 查询奖励类型详细
export function getAwardtype(gxsAwardTypeid) {
  return request({
    url: '/gxs/awardtype/' + gxsAwardTypeid,
    method: 'get'
  })
}

// 新增奖励类型
export function addAwardtype(data) {
  return request({
    url: '/gxs/awardtype',
    method: 'post',
    data: data
  })
}

// 修改奖励类型
export function updateAwardtype(data) {
  return request({
    url: '/gxs/awardtype',
    method: 'put',
    data: data
  })
}

// 删除奖励类型
export function delAwardtype(gxsAwardTypeid) {
  return request({
    url: '/gxs/awardtype/' + gxsAwardTypeid,
    method: 'delete'
  })
}
